<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateYjLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('yj_logs', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('uid');
            $table->string('sign')->comment('加或减');
            $table->decimal('num',10,5)->comment('业绩数');
            $table->string('msg')->comment('描述');
            $table->decimal('before',10,5)->comment('之前业绩');
            $table->decimal('after',10,5)->comment('之后业绩');
            $table->integer('type')->comment('1个人业绩2团队业绩');
            $table->integer('status')->comment('1个人报单业绩');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('yj_logs');
    }
}
